from rich.console import Console
from rich.table import Table

console = Console()

table = Table(title="员工绩效表", show_header=True)
table.add_column("姓名", style="cyan")
table.add_column("部门", style="magenta")
table.add_column("KPI", justify="right")

table.add_row("张三", "技术部", "[green]98.5%[/]")
table.add_row("李四", "市场部", "[yellow]85.2%[/]")
table.add_row("王五", "财务部", "[red]63.7%[/]")

console.print(table)
